﻿using System.Collections.Generic;

namespace IslandUnit.Providers
{
    /// <summary>
    /// Base class for builder framework providers
    /// </summary>
    public abstract class BuilderProviderBase
    {
        /// <summary>
        /// Creates a list of itens of the indicated type.
        /// </summary>
        /// <typeparam name="TPoco">The type of the itens in list.</typeparam>
        /// <param name="itensToBuild">The number of itens to be created.</param>
        /// <returns>A list of itens</returns>
        public abstract IList<TPoco> CreateList<TPoco>(int itensToBuild);

        /// <summary>
        /// Creates a item of the indicated type.
        /// </summary>
        /// <typeparam name="TPoco">The type of the item.</typeparam>
        /// <returns>One item.</returns>
        public abstract TPoco CreateOne<TPoco>();
    }
}
